package org.layuiframework.generator.config;

import com.baomidou.mybatisplus.generator.config.TemplateConfig;
import lombok.Data;

@Data
public class LayuiTemplateConfig extends TemplateConfig {

    private String layui_entity = "/templates/entity.java";
    private String layui_service = "/templates/service.java";
    private String layui_serviceImpl = "/templates/serviceImpl.java";
    private String layui_mapper = "/templates/mapper.java";
    private String layui_xml = "/templates/mapper.xml";
    private String layui_controller = "/templates/controller.java";

    private String spring_config_yml = "/templates/config/application.yml";

    private String layui_index_html = "/templates/layui/index.html";
    private String layui_index_js = "/templates/layui/index.js";
    private String layui_vo = "/templates/vo.java";
    private String layui_advice = "/templates/config/advice.java";
    private String layui_datasource = "/templates/config/datasource.java";
    private String layui_html = "/templates/layui/message.html";
    private String layui_add_html = "/templates/layui/messageadd.html";
    private String layui_update_html = "/templates/layui/messageupdate.html";
    private String layui_js = "/templates/layui/message.js";
    private String layui_add_js = "/templates/layui/messageadd.js";
    private String layui_update_js = "/templates/layui/messageupdate.js";
    private String layui_config_js = "/templates/layui/config.js";

    private String spring_security_keypair = "/templates/security/keypair.java";
    private String spring_security_webuser = "/templates/security/webuser.java";
    private String spring_security_config = "/templates/security/securityconfig.java";
    private String spring_security_controller = "/templates/security/controller.java";

    private String spring_elasticsearch_entry = "/templates/es/esentity.java";
    private String spring_elasticsearch_dao = "/templates/es/esdao.java";
    private String spring_elasticsearch_handler = "/templates/es/eshandler.java";
    private String spring_elasticsearch_fulltask = "/templates/es/fullsynctoes.java";
    private String spring_elasticsearch_incrtask = "/templates/es/incrsynctoes.java";
    private String spring_logstash_config = "/templates/es/logstash.conf";

    public LayuiTemplateConfig() {
        this.setController(layui_controller)
                .setEntity(layui_entity)
                .setService(layui_service)
                .setServiceImpl(layui_serviceImpl)
                .setMapper(layui_mapper)
                .setXml(layui_xml);
    }


}
